package com.nfit.shopmodel.vo.common;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * ClassName:AuthConst
 * Package:com.nfit.shopmodel.vo.common
 * Description
 *
 * @Author L
 * @Create 2024/11/16 15:32
 */
@Data
@Schema(description = "自定义常量类")
public class AuthConst {

    @Schema(description = "登录用户存入redis的key")
    public static final String LOGIN_USER = "user:login:";

    @Schema(description = "验证码存入redis的key")
    public static final String VALIDATE_CODE = "user:login:validateCode";

    @Schema(description = "这个值不可修改,作为验证码的前缀值")
    public static final String VALIDATE_VALUE = "data:image/png;base64,";

    @Schema(description = "过期时间")
    public static final Long LOGIN_TTL = 7L;

    @Schema(description = "购物车信息")
    public static final String CART_USER = "cart:user:";

    @Schema(description = "后端存入ThreadLocalUtil线程的key")
    public static final String THREADLOCAL_API_USER = "threadLocal:user:api:";

    @Schema(description = "移动端存入ThreadLocalUtil线程的key")
    public static final String THREADLOCAL_ADMIN_USER = "threadLocal:user:admin:";

    @Schema(description = "redis存放库存数量的key")
    public static final String CART_SKU_USER = "cart:sku:user:";

    @Schema(description = "redis存放库存数量的key")
    public static final String CART_SKU_STOCK = "cart:sku:stock:";

    @Schema(description = "存入移动端用户的id")
    public static final String ADMIN_USER = "admin:user:";

}
